const path = require('path');
const express = require('express');

//构建
const UsertypeRouter = express.Router();

//引入控制器
const UsertypeController = require(path.join(__dirname,"../controllers/UsertypeController"));

//账号类型列表页面
UsertypeRouter.get('/usertypeList',UsertypeController.usertypeList);

//账号类型添加页面
UsertypeRouter.get('/usertypeAdd',UsertypeController.usertypeAdd);

//账号类型添加post处理
UsertypeRouter.post('/usertypeAdd',UsertypeController.usertypeAddForm);

//账号类型编辑页面
UsertypeRouter.get('/usertypeEdit',UsertypeController.usertypeEdit);

//账号类型编辑post处理
UsertypeRouter.post('/usertypeEdit',UsertypeController.usertypeEditForm);

//账号类型删除
UsertypeRouter.get('/usertypeDelete',UsertypeController.usertypeDelete);


module.exports = UsertypeRouter;